import request from '@/utils/request'

// 获取学生列表
export function getStudentList(params) {
  return request({
    url: '/student/list',
    method: 'get',
    params: params
  })
}

// 添加学生
export function addStudent(data) {
  return request({
    url: '/student/add',
    method: 'post',
    data: data
  })
}

// 编辑学生
export function editStudent(data) {
  return request({
    url: '/student/edit',
    method: 'post',
    data: data
  })
}

// 删除学生
export function deleteStudent(data) {
  return request({
    url: '/student/delete',
    method: 'post',
    data: data
  })
}